//
//  RJWarningAQICheckDay.m
//  AirQuality
//
//  Created by Po on 15/4/14.
//  Copyright (c) 2015年 Po. All rights reserved.
//

#import "RJWarningPM25CheckDay.h"

@implementation RJWarningPM25CheckDay

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        NSArray * array = [[NSBundle mainBundle] loadNibNamed:@"RJWarningPM25CheckDay" owner:self options:nil];
        UIView * view = array[0];
        [view setFrame:self.bounds];
        [view setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"alphaBack"]]];
        [self addSubview:view];
        NSArray * labelArray = @[_timeLabel, _selectLabel,_concentrationLabel, _concentrationRangeLabel, _conRankTittleLabel, _conTittleLabel, _AQIRangeLabel,_aqiRankTittleLabel, _blankLabel, _mansTittleLabel, _manTittleLabel,];
        for (UILabel * label  in labelArray) {
            [label setBackgroundColor:[UIColor colorWithPatternImage:[UIImage imageNamed:@"homeTableCellBack"]]];
        }
    }
    return self;
}
- (IBAction)pressDetailButton:(UIButton *)sender {
    RJDetailTable * detailTabel = [[RJDetailTable alloc] initWithData:_detailData];
    [sysWindow addSubview:detailTabel];
}

@end
